var i = require("../../utils/requestApi.js"), t = require("../../config/config.js");

Page({
    data: {
        version: t.version,
        fileDomainUrl: t.fileDomainUrl
    },
    randomChat: function() {
        wx.showLoading({
            title: "再给我两分钟...",
            mask: !0
        }), i.getChatRandom({}).then(function(i) {
            wx.hideLoading(), !0 === i.result && wx.navigateTo({
                url: "../detail3/detail3?random=1&chatId=" + i.obj.chatId + "&wxUserId=" + i.obj.wxUserId
            });
        });
    },
    chatList: function() {
        wx.navigateTo({
            url: "../list3/list3"
        });
    },
    writeChat: function() {
        wx.navigateTo({
            url: "../contribute3/contribute3"
        });
    },
    onLoad: function() {},
    onShareAppMessage: function() {
        return {
            title: "土味情话合集",
            path: "/pages/index3/index3",
            imageUrl: "../../resource/img/xindong.jpg"
        };
    }
});